﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLL;
using DAL.Linq;


namespace InvoiceManagement.Controllers
{
    public class DM_DONVITINHController
    {
        private static IDMDONVITINH_Dao DM_DonViTinhController = DataAccess.DMDONVITINH_Dao;

        public bool DMDonViTinh_Insert(string MaCode, string TenDonViTinh, bool IsUse, int CreateBy)
        {
            return DM_DonViTinhController.DM_DonViTinh_Insert(MaCode, TenDonViTinh, IsUse, CreateBy);
        }

        public bool DMDonViTinh_Update(int MaDonViTinh, string TenDonViTinh, bool IsUse, int CreateBy, int ModifiedBy, DateTime ModifiedOn)
        {
            return DM_DonViTinhController.DM_DonViTinh_Update(MaDonViTinh, TenDonViTinh, IsUse, CreateBy, ModifiedBy, ModifiedOn);
        }

        public bool DMDonViTinh_Delete(int MaDonViTinh)
        {
            return DM_DonViTinhController.DM_DonViTinh_Delete(MaDonViTinh);
        }

        public IList<DMDONVITINH> GetAll_DMDonViTinh()
        {
            return DM_DonViTinhController.GetAll_DMDonViTinh();
        }
    }
}
